package com.example.cursor_service;

import com.example.cursor_orm.model.Permission;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public interface PermissionService {
    Permission createPermission(Permission permission);
    Permission getPermissionById(Integer id);
    Permission updatePermission(Integer id, Permission permission);
    boolean deletePermission(Integer id);
    List<Permission> getPermissionList(int page, int size);
    List<Permission> getPermissionTree();
    boolean assignPermissionToRole(Integer permissionId, Integer roleId);
    boolean removePermissionFromRole(Integer permissionId, Integer roleId);
} 